package org.scs.carleton.ca.pgdt.core.ui.internal.highlighting;

import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.Region;
import org.eclipse.jface.text.TextPresentation;
import org.eclipse.jface.text.presentation.PresentationReconciler;

/**
 * Presentation Reconciler
 * 
 * @author tessierj
 */
public class PrologPresentationReconciler extends PresentationReconciler {

	private IDocument lastDocument;
	
	public TextPresentation createRepairDescription(Region region, IDocument document) {
		if (document != lastDocument) {
			setDocumentToDamagers(document);
			setDocumentToRepairers(document);
			lastDocument = document;
		}
		return createPresentation(region, document);
	}
}
